package ip

import (
	"testing"
)

func TestDecodeIP(t *testing.T) {
	bs := []byte{69, 0, 0, 66, 87, 70, 0, 0, 30, 6, 175, 197, 192, 168, 10, 66, 192, 168, 10, 24, 0, 102, 192, 11, 0, 103, 56, 250, 24, 158, 164, 201, 80, 24, 32, 0, 15, 230, 0, 0, 3, 0, 0, 26, 2, 240, 128, 50, 3, 0, 0, 166, 156, 0, 2, 0, 5, 0, 0, 4, 1, 255, 3, 0, 1, 1}
	t.Log(DecodeIP(bs))
}

func TestDecodeIP2(t *testing.T) {
	bs := []byte{8, 0, 247, 253, 0, 1, 0, 1, 0,
		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
		0, 0, 0, 0, 0, 0, 0, 0, 0}
	t.Log(DecodeIP(bs))
}
